Image forming apparatus supporting wi-fi direct and method of activating wi-fi direct

ABSTRACT

An image forming apparatus supporting peer to peer (P2P) connection includes a print engine to perform a print operation; a first wireless interface to connect the image forming apparatus to an access point (AP) of an infrastructured network; a second wireless interface to connect the image forming apparatus to an external mobile device by P2P; a soft AP module to allow the image forming apparatus to perform as an AP when the image forming apparatus is P2P connected; a dynamic host configuration protocol (DHCP) server unit to allocate an internet protocol (IP) address to the mobile device that is P2P connected to the image forming apparatus; a soft AP activating unit to activate the soft AP module; and a control unit. If a discovery packet is received from the mobile device via P2P interface, the control unit is operable to control the image forming apparatus to process the discovery packet.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No.14/686,263 filed on Apr. 14, 2015, which is a continuation of U.S.application Ser. No. 13/712,138 filed on Dec. 12, 2012, which claimspriority under 35 USC §120 from U.S. Provisional Patent Application No.61/569,391, filed on Dec. 12, 2011, in the U.S. Patent and TrademarkOffice, the disclosures of each of which are incorporated herein intheir entirety by reference.

BACKGROUND

1. Field

The present general inventive concept relates to an image formingapparatus supporting W-Fi direct, and more particularly, to an apparatusand method of activating Wi-Fi direct in an image forming apparatussupporting Wi-Fi direct.

2. Description of the Related Art

Recently, peer to peer (P2P) communication technology, by which wirelessdevices may be directly connected to each other without an additionalwireless connecting apparatus, have been generalized and widely used.For example, Bluetooth technology makes the P2P communication possible.Although there are limitations in terms of transmission speed andtransmission range of Bluetooth, new versions of Bluetooth are beingdeveloped to compensate for the limitations.

In addition, which is a wireless local area network (WLAN) standardbased on IEEE 802.11 regulated by the Wi-Fi alliance, is basically atechnology using ultra-high speed Internet by accessing access points(APs) connected to an infrastructured network; however, the Wi-Fi mayserve the P2P communication by using an ad-hoc function. However, whenthe ad-hoc function is used, security is weakened, a transmission speedis lowered, and a setting method is not easily performed. Therefore, theWI-Fi alliance has suggested a WI-Fi Direct technology that makes theP2P communication possible. The Wi-Fi Direct allows P2P connectionbetween wireless devices without using the AP, supports a transmissionspeed of a maximum of 250 Mbps, and performs security settings by usingWI-Fi protected access 2 (WPA2), in order to address problems of thead-hoc function. In addition, the W-Fi Direct supports a transmissionrange of a maximum of 200 m, and thus, is considered as a substitute forthe P2P communication.

As described above, with the appearance of the Wi-Fi Direct, it isconsidered that utilization of the P2P communication is increased more.In addition, the P2P communication technology may be also applied toimage forming apparatuses such as printers, scanners, facsimiles, andmulti-function printers. Therefore, technologies for safely andconveniently using an image forming apparatus supporting the P2Pconnection are necessary.

SUMMARY

The present general inventive concept provides an apparatus and methodof activating W-Fi Direct in an image forming apparatus supporting theW-Fi Direct.

Additional features and utilities of the present general inventiveconcept will be set forth in part in the description which follows and,in part, will be apparent from the description, or may be learned bypractice of the general inventive concept.

The foregoing and/or other features and utilities of the present generalinventive concept may be achieved by providing a multi-function printer(MFP) supporting Wi-Fi Direct, the MFP including a print engine toperform a print operation, a first wireless interface to connect the MFPto an access point (AP) of an infrastructured network, a second wirelessinterface to Wi-Fi Direct connect the MFP to an external wirelessterminal, a soft AP to allow the MFP to perform as an AP when the MFP isW-Fi Direct connected, a dynamic host configuration protocol (DHCP)server unit to allocate an internet protocol (IP) address to thewireless device that is W-Fi Direct connected to the MFP, a Wi-Fi Directconnection manager to manage the W-Fi Direct connection, and anautomatic group owner (AGO) manager to activate W-Fi direct so as todrive the soft AP and operate the MFP as a group owner (GO) when the MFPreceives a W-Fi Direct activation request.

The foregoing and/or other features and utilities of the present generalinventive concept may be achieved by providing a method of activatingW-Fi Direct in a multi-function printer (MFP) supporting W-Fi Direct,the method including receiving a W-Fi Direct activation request by theMFP, and driving a soft access point (AP) of the MFP in order toactivate Wi-Fi Direct so that the MFP may function as a group owner(GO).

The foregoing and/or other features and utilities of the present generalinventive concept may be achieved by providing a multi-function printer(MFP) supporting Wi-Fi Direct, the MFP including an interface configuredto receive a W-Fi Direct activation request, and a memory processor unitconfigured to drive a soft access point (AP) to activate W-Fi Directsuch that the MFP functions as a group owner (GO) according to thereceived W-Fi Direct activation request.

The MFP may include a print engine to perform a print operation, theinterface may perform wireless communication with an external deviceusing W-Fi Direct, and the processor unit may control the print engineto perform the printing operation according to data received through thewireless communication using the Wi-Fi-Direct.

The interface may perform a first wireless communication with anexternal wireless device according to the W-Fi Direct and performs asecond wireless communication with an access point of an infrastructurednetwork, and the processor unit may be configured to set a channel forthe first wireless communication and the second wireless communicationand is configured to control the print engine to perform the printoperation according to data received through any one of the firstwireless communication or the second wireless communication using theW-Fi Direct.

The processor unit may check a channel which has been previously used inany one of the first wireless communication and the second wirelesscommunication and set the channel for either one of the first wirelesscommunication and the second wireless communication.

The processor may separate a security domain between the infrastructurednetwork connection and the W-Fi Direct connection.

The processor unit may allocate an internet protocol (IP) address to thewireless device that is Wi-Fi Direct connected to the MFP.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other features and utilities of the present generalinventive concept will become apparent and more readily appreciated fromthe following description of the embodiments, taken in conjunction withthe accompanying drawings of which:

FIG. 1 is a diagram illustrating devices supporting W-Fi Direct andlegacy wireless local area network (WLAN) devices that are wirelesslyconnected to each other to form a wireless network according to anembodiment of the present general inventive concept;

FIG. 2 is a diagram illustrating processes of wirelessly connecting thedevices supporting the Wi-Fi Direct to each other according to anembodiment of the present general inventive concept;

FIG. 3 is a diagram illustrating an example of displaying a list of W-FiDirect devices that are found after a device discovery process performedby a device supporting the Wi-Fi Direct;

FIG. 4 is a diagram illustrating a group formation process in theprocesses of connecting the Wi-Fi Direct supporting devices to eachother according to an embodiment of the present general inventiveconcept;

FIG. 5 is a diagram illustrating a display screen to execute WPSaccording to an embodiment of the present general inventive concept;

FIG. 6 is a diagram illustrating a list of devices supporting W-FiDirect and information of which is stored according to a profile storingfunction;

FIG. 7 is a diagram illustrating W-Fi Direct supporting devices that aresimultaneously connected to each other according to an embodiment of thepresent general inventive concept;

FIG. 8 is a block diagram illustrating a hardware configuration of amulti-function printer supporting the W-Fi Direct according to anembodiment of the present general inventive concept;

FIG. 9 is a block diagram illustrating a software program configurationof the multi-function printer supporting the W-Fi Direct of FIG. 8according to an embodiment of the present general inventive concept;

FIG. 10 is a detailed block diagram illustrating a software programconfiguration of a multi-function printer supporting the W-Fi Directaccording to an embodiment of the present general inventive concept;

FIG. 11 is a detailed block diagram illustrating the multi-functionprinter supporting the W-Fi direct according to the embodiment of thepresent general inventive concept;

FIGS. 12, 13A, and 13B are flowcharts illustrating a method ofactivating Wi-Fi Direct in the multi-function printer supporting W-FiDirect of FIG. 11 according to an embodiment of the present generalinventive concept;

FIG. 14 is a detailed block diagram illustrating a multi-functionprinter supporting W-Fi Direct according to an embodiment of the presentgeneral inventive concept;

FIG. 15 is a flowchart illustrating a method of performing image formingprocesses in the multi-function printer supporting Wi-Fi Direct of FIG.14, according to an embodiment of the present general inventive concept;

FIG. 16 is a block diagram illustrating a software program configurationof a multi-function printer supporting the W-Fi Direct according to anembodiment of the present general inventive concept;

FIG. 17 is a detailed block diagram illustrating a multi-functionprinter supporting W-Fi Direct according to an embodiment of the presentgeneral inventive concept;

FIGS. 18 through 23 are flowcharts illustrating a method of managingchannels in a multi-function printer supporting Wi-Fi Direct accordingto an embodiment of the present general inventive concept;

FIG. 24 is a detailed block diagram illustrating a multi-functionprinter supporting W-Fi Direct according to an embodiment of the presentgeneral inventive concept; and

FIGS. 25 through 27 are flowcharts illustrating a method of changing anoperation mode in the multi-function printer supporting W-Fi Directaccording to an embodiment of the present general inventive concept.

DETAILED DESCRIPTION

Reference will now be made in detail to the embodiments of the presentgeneral inventive concept, examples of which are illustrated in theaccompanying drawings, wherein like reference numerals refer to the likeelements throughout. The embodiments are described below in order toexplain the present general inventive concept while referring to thefigures.

Expressions such as “at least one of” when preceding a list of elements,modify the entire list of elements and do not modify the individualelements of the list.

Hereinafter, a multi-function printer (MFP) that supports W-Fi Directwill be described as an example of an image forming apparatus supportinga peer-to-peer (P2P) connection. However, the scope of the presentgeneral inventive concept to be protected is not limited thereto, but isdefined by descriptions of claims.

Before describing embodiments of the present general inventive concept,a basic connections and operations of an MFP that supports the Wi-FiDirect will be described with reference to accompanying drawings.

FIG. 1 is a diagram illustrating wireless local area network (WLAN)devices supporting W-Fi Direct and a legacy WLAN device connecting toeach other to form a wireless network according to an embodiment of thepresent general inventive concept. Referring to FIG. 1, an MFP 110supporting the Wi-Fi Direct is wirelessly connected to a smartphone 120supporting the Wi-Fi Direct, a laptop computer 130 supporting the W-FiDirect, and a legacy WLAN laptop computer 140. Here, the legacy WLANlaptop computer 140 denotes a conventional laptop computer which adoptsa WLAN technology and does not support the Wi-Fi Direct.

The WLAN device supporting the W-Fi Direct (hereinafter, referred to as“W-Fi Direct device”) may perform a P2P connection without using aninfrastructured network, unlike conventional devices supporting W-Fi.According to the conventional Wi-Fi technology, a W-Fi device iswirelessly connected to a router, that is, an access point (AP)connected to an infrastructured network that is configured in advance inorder to form a wireless network. Here, the Wi-Fi devices, which arewirelessly connected to the AP of the infrastructure network, functionas stations. However, according to W-Fi Direct technology, one of theWi-Fi Direct devices that are to form a wireless network may operate asan AP of a W-Fi Direct network, and the other W-Fi Direct devices arewirelessly connected to the Wi-Fi Direct device that operates as the APsuch that the other Wi-Fi Direct devices operate as stations. Therefore,the wireless network may be formed between the Wi-Fi direct deviceswithout the AP connected to the infrastructured network. In addition,when the wireless network is formed between the W-Fi direct devices, thelegacy WLAN devices, such as the W-Fi devices, may recognize that theWI-Fi direct device operates as an AP and may be wirelessly connected tothe W-Fi direct device.

Referring to FIG. 1, the Wi-Fi Direct MFP 110, the W-Fi Directsmartphone 120, and the Wi-Fi Direct laptop computer 130 that are theW-Fi direct devices form a wireless network without an AP connected tothe infrastructured network. As described above, the W-Fi direct devicesmay be wirelessly connected to each other to form a P2P group without anAP connected to the infrastructured network. Here, the W-Fi Direct MFP110 operates as the AP, and the device operating as the AP among theW-Fi direct devices is referred to as a group owner (GO) of a P2P group.In addition, the W-Fi smartphone 120 and the W-Fi Direct laptop computer130 are wirelessly connected to the GO, that is, the W-Fi Direct MFP110, to operate as the stations, which are referred to as clients. Onthe other hand, the legacy WLAN laptop computer 140 that does notsupport the Wi-Fi Direct recognizes that the GO, that is, the W-FiDirect MFP 110, as the AP, and is wirelessly connected to the GO to beconnected to the wireless network formed by the Wi-Fi direct devices.

Although FIG. 1 illustrates the W-Fi Direct MFP 110 to operate as theGO, any one of the other W-Fi direct devices, that is, the smartphone120 and the laptop computer 130, may operate as the GO and the MFP 110may operate as the client. A determination of which of the W-Fi directdevices becomes the GO can be made through a negotiation process in W-Fidirect connection processes, and this will be described in detail later.Meanwhile, the W-Fi direct device may be the GO by itself before theconnection without any negotiation with other W-Fi Direct device, andthe W-Fi direct device in this case is referred to as an autonomousgroup owner (AGO). In addition, a wireless network formed based on theAGO is referred to as an autonomous P2P group. When the autonomous P2Pgroup is formed, the legacy WLAN device may recognize the AGO as an APconnected to the infrastructured network and may be connected to theAGO.

Although FIG. 1 illustrates an example in which the Wi-Fi direct devicesform the P2P group without the AP connected to the infrastructurednetwork, the W-Fi direct devices may operate as the stations byconnecting to the AP, if the AP is connected to the infrastructurednetwork.

Hereinafter, wireless connecting processes between the W-Fi directdevices and characteristics of the W-Fi Direct technology will bedescribed with reference to the accompanying drawings. For convenienceof description, an MFP supporting the W-Fi Direct (hereinafter, referredto as “W-Fi Direct MFP”) will be described as an example; however, thepresent general inventive concept is not limited thereto, that is,embodiments of the present general inventive concept may be applied toprinters, scanners, or facsimiles supporting the WI-Fi Direct. Inaddition, the W-Fi Direct is used as an example of the P2P communicationmethod; however, other P2P communication methods, such as Bluetooth andZigbee, may be used within the applicable range of the present generalinventive concept.

FIG. 2 is a diagram illustrating processes of wirelessly connecting W-FiDirect devices to each other. The processes of W-Fi Direct connectionbetween a W-Fi Direct MFP 210 and a W-Fi Direct laptop computer 220 areillustrated hereinafter. The W-Fi Direct connecting processes may bedivided as a device discovery process, a group formation process, and asecure connection process. Referring to FIG. 2, the W-Fi Direct MFP 210receives a request for a device discovery from a user, and searches fora Wi-Fi Direct device around the Wi-Fi Direct MFP 210 at operation 202.The device discovery request may be input through a user interface ofthe MFP 210, for example, a user interface realized on a display unit,such as a liquid crystal display (LCD), formed in the MFP 210. If it isdetermined as a result of searching that there is a Wi-Fi Direct devicearound the MFP 210, the MFP 210 shows the user the searched devicethrough the display unit and receives a connection request 203 from theuser. The connection request 203 may be also input through the displayunit of the MFP 210 from the user, for example, the user may pushbuttons or a touch panel of the display unit. If there is a plurality ofWi-Fi Direct devices, the MFP 210 displays a list of the searched W-Fidirect devices on the display unit so that the user may select one ofthe W-Fi direct devices and request the connection to the selected W-Fidirect device.

After receiving the connection request at operation 203, a groupformation is performed between the W-Fi Direct devices to be connectedat operation 204. The group formation process determines the W-Fi Directdevices to be connected to each other and determines the W-Fi directdevices to be the GO or the clients in the group. The W-Fi Direct deviceto be the GO is determined through the negotiation between the W-FiDirect devices, and the negotiation will be described in detail withreference to FIG. 4.

When the group is formed, the devices included in the group are to besecurely connected to each other by using a W-Fi protected setup (WPS)technology. The WPS denotes a function of performing simple secureconnection between the Wi-Fi supporting devices. The WPS may beclassified as a personal identification number (PIN) type WPS and a pushbutton configuration (PBC) type WPS. The PIN type WPS sets the secureconnection by inputting a PIN code that is set in advance, and the PBCtype WPS sets the secure connection by pushing a WPS button that isprovided on the W-Fi Direct device.

Hereinafter, the PBC type WPS will be described as an example. The userpushes a WPS button provided on the MFP 210 to request the secureconnection at operation 205. In addition, within a predetermined periodof time (for example, 120 seconds), the secure connection may beachieved by pushing a WPS button formed on the laptop computer 220, or aWPS button realized on an application program for W-Fi Direct connectionin the laptop computer 220. The WPS button realized on the applicationprogram for the W-Fi Direct connection in the laptop computer 220 may bean object represented on a display unit of the laptop computer 220 bythe application program for the W-Fi Direct connection. A detailedexample of the WPS button is represented as reference numeral 510 inFIG. 5. The user clicks the WPS button represented on the display unitof the laptop computer 220 by using a mouse, for example, to request thesecure connection. When the secure connection is requested by pushingthe WPS button, the device that is determined to be the GO in the groupformation process transmits secure information to devices determined asthe clients at operation 206. According to the W-Fi Direct, the secureconnection is executed after encrypting in a W-Fi protected access 2(WPA2)-pre-shared key (PSK) method, and thus, the W-Fi Direct may have ahigher security function than that of a conventional wired equivalentprivacy (WEP) or W-Fi protected access (WAP) method.

When the WPS is executed, the W-Fi direct device that is the client isconnected to the Wi-Fi direct device that is the GO at operation 207. Atthis time, the W-Fi Direct device that is the GO automatically allocatesan Internet protocol (IP) address to the Wi-Fi direct device that is theclient by using a dynamic host configuration protocol (DHCP) server atoperation 208, and then, the P2P connection between the Wi-Fi Directdevices is completed.

Basic processes for connecting the W-Fi direct devices have beendescribed so far, and detailed processes and characteristics of the W-FiDirect technology will be described with reference to the accompanyingdrawings as follows.

FIG. 3 is a diagram illustrating an example of displaying a list of theWi-Fi Direct devices that are searched in the device discovery processin the W-Fi Direct device. When the device discovery process isperformed by the W-Fi direct device, device information, such as a typeof the device and a service set identifier (SSID) of the device, isexchanged between the devices through a probe request and a proberesponse that are WLAN packets, and the W-Fi direct device that performsthe device discovery process displays the collected information. Asshown in FIG. 3, the SSIDs and the types of the searched W-Fi Directdevices are represented as text or icons. Here, all of the searcheddevices may be represented in the list; however, the devices may befiltered so that the devices of a desired type may be only displayed inthe list. According to the W-Fi Direct technology, the W-Fi directdevices are defined in category units. The W-Fi Direct devices may beclassified as categories, for example, computers, input devices,printers, scanners, facsimiles, copying machines, and cameras, and eachof the categories is divided into sub-categories. For example, thecomputer may be classified as personal computers (PCs), servers, laptopcomputers, and the like.

FIG. 4 is a diagram illustrating the group formation process in detailamong the connecting processes between the Wi-Fi Direct devices. Thegroup formation process is a process of determining the W-Fi Directdevices that are to form a network, and the W-Fi Direct devices to bethe GO and the clients. For example, when the W-Fi direct MFP 410performs the device discovery and selects a laptop computer 420 amongthe discovered W-Fi Direct devices to be connected, the MFP 410transmits a GO negotiation request to the laptop computer 420 atoperation 401. The laptop computer 420 receiving the GO negotiationrequest compares an intent value thereof with that of the MFP 410, andthen, determines the MFP 410 as the GO when the intent value of the MFP410 is greater than that of the laptop computer 420 and determines thelaptop computer 420 as the GO when the intent value of the laptopcomputer 420 is greater than that of the W-Fi direct MFP 410. Here, theintent value is a value representing a degree of task intent in eachdevice, and is determined according to a design or user preference andsetting. The intent value of the device, which is always supplied power,may be set to be relatively high. As described above, after determiningthe W-Fi Direct device to be the GO by comparing the intent values, thelaptop computer 420 transmits the determination result to the MFP 410 asa response to the GO negotiation at operation 402. The MFP 410 thatreceives the determination result transmits an acknowledgement to thelaptop computer 420 at operation 403 in order to verify the receipt ofthe negotiation, and then, the group formation process is finished. Whenthe group formation is completed, the W-Fi Direct device that is the GOmanages secure information and SSIDs of the other W-Fi Direct devicesincluded in the group.

When the group is formed, the Wi-Fi Direct devices included in the groupare securely connected to each other through the WPS. FIG. 5 is adiagram illustrating a display screen 500 to provide an interface to auser to execute the WPS. The display screen 500 of FIG. 5 may bedisplayed on a display unit of the W-Fi Direct MFP. Referring to FIG. 5,the user may select one of a WPS button 510 and a PIN code 520 toexecute the WPS. When the WPS is executed through the WPS button 510,the WPS button 510 of the W-Fi Direct MFP is pushed and WPS buttons ofother devices are pushed within a predetermined period of time, andthen, secure information is exchanged between the devices automaticallyand the secure connection is made. Here, the Wi-Fi Direct device that isthe GO provides secure information to the W-Fi direct devices that arethe clients. In addition, the secure connection is performed afterencrypting in the WPA2-PSK verification method, and thus, high securitymay be achieved.

The W-Fi Direct devices have a profile storage function that is forstoring information of the Wi-Fi Direct devices connected once thereto.FIG. 6 is a diagram illustrating a list of the W-Fi Direct devices withinformation of which is stored according to the profile storagefunction. The list of FIG. 6 is a screen displayed on the display unitof the W-Fi Direct MFP. Information of a first list 610 denotes a W-FiDirect device currently connected to the Wi-Fi Direct MFP, informationof second through fourth lists 620-640 denotes W-Fi Direct devices thatare not currently connected to the W-Fi Direct MFP, but are included ina device discovery range of the W-Fi Direct MFP, and information of afifth list 650 denotes a W-Fi Direct device that has been connected atleast once to the W-Fi Direct device although that is not discoveredcurrently. If the information of the fifth list 650 is not necessary,the user may delete the fifth list 650 by pushing a remove button 651.Since the W-Fi direct device has the profile storage function asdescribed above, the W-Fi Direct device stores information of the otherW-Fi Direct devices connected at least once thereto, and then, may beconnected in a high speed and/or in a short period of time withoutexecuting the WPS by using the stored information in a case where thesame device attempts to connect thereto again.

The W-Fi Direct device may be P2P connected to another W-Fi directdevice, and at the same time, may be connected to the infrastructurednetwork, which is referred to as a concurrent connection. FIG. 7 is adiagram illustrating the W-Fi Direct devices that are in the concurrentconnection states. Referring to FIG. 7, the W-Fi direct MFP 720 is P2Pconnected to a smartphone 710 that is another Wi-Fi direct device, andat the same time, the W-Fi Direct MFP 720 is also connected to an AP 730of the infrastructured network. The W-Fi Direct MFP 720 may directlytransmit/receive print data to/from the smartphone 710, and at the sametime, may directly transmit/receive print data to/from theinfrastructured network through the AP 730 of the infrastructurednetwork.

When the W-Fi direct device is concurrently connected to the W-Fi Directdevice and the infrastructured network as shown in FIG. 7, or when theW-Fi Direct device is wired connected to the infrastructured network andP2P connected to another W-Fi direct device, different IP addresses andMAC addresses with respect to the connections, that is, the connectionto the infrastructured network and the connection to the another Wi-FiDirect device, may be used. Through a multi-homing technology, the W-FiDirect device may provide the devices with different services from eachother. For example, the Wi-Fi Direct MFP may provide services of allfunctions of the MFP through an interface connected to theinfrastructured network; however, the W-Fi Direct MFP may provideservices of partial functions of the MFP through an interface connectedto another Wi-Fi Direct device.

FIG. 8 is a block diagram illustrating a hardware configuration of theW-Fi Direct MFP. Referring to FIG. 8, the Wi-Fi Direct MFP may include aWLAN interface module 810, an Ethernet interface module 820, a centralprocessing unit or a processing unit (CPU) 830, a memory unit 840, auser interface module 850, a scanner module 860, a fax module 870, and aprint engine 880. The memory unit 840 may include a random access memory(RAM) 842 and a read only memory (ROM) 844. The memory unit 840 mayinclude one or more semiconductor chips or one or more semiconductorchip packages in which a plurality of semiconductor chips are mounted ona substrate thereof. If the MFP only supports the WLAN, the MFP may notinclude the Ethernet interface module 820. In addition, if the device isa printer, rather than the MFP, the scanner module 860 and the faxmodule 870 are not necessary.

The WLAN interface module 810 is hardware to perform an IEEE 802.11b/g/n function, and may communicate with a main board, on which the CPU830 is mounted, of the MFP via a universal serial bus (USB). TheEthernet interface module 820 is hardware to perform wired Ethernetcommunication according to IEEE 802.3. The CPU 830 controls overalloperations of the MFP. The memory unit 840 stores information to controlthe MFP and the print data to be read if necessary. The user interfacemodule 850 functions as a medium for the user to identify information ofthe MFP and to input commands into the MFP. The user interface module850 may be variously modified according to products, for example, may beconfigured as two or four lines displayed on a display unit, such as anLCD or a light emitting diode (LED), or may be realized as a graphicuser interface (UI) so as to represent various graphics. The scannermodule 860, the fax module 870, and the print engine 880 are hardware toperform functions of a scanner, a facsimile, and a printer. The printengine 880 may include electrical and mechanical components to print animage on a print medium according to the data stored in the memory unit840 or received from an external wireless device through the WLAN and/orWI-Fi-Direct.

FIG. 9 is a block diagram illustrating a software program configurationof the Wi-Fi Direct MFP. The configuration of the software program inthe Wi-Fi Direct MFP will be described with reference to FIG. 9 asfollows.

A WLAN dongle firmware 901 is firmware to connect the WLAN, and may bestored in WLAN dongle hardware or may be transmitted to the WLAN donglehardware from a main board of the MFP when booting the MFP. A bus driver902 and a STA (station) host driver 903 are low level bus drivers tocommunicate with the WLAN hardware. A WLAN controlling channel 904 and aWLAN data channel 905 are channels to communicate with the WLANfirmware. A Wi-Fi Direct module 907 performs the Wi-Fi Direct connectionand transmits an operating command to the WLAN firmware. An IEEE 802.11ugeneric advertisement service (GAS) module 908 performs functionsaccording to IEEE 802.11u GAS, a module 909 performs functions relatingto CxAPI, and a WPS module 910 performs a WPS function. A soft AP module911 is a software program module to allow the MFP to perform as the AP.A transmission control protocol (TCP)/IP 913 is a standard protocol fornetwork transmission. A Wi-Fi Direct connection manager 912 is a moduleto control the Wi-Fi Direct connection. A Wi-Fi Direct user interface915 allows the user to perform settings related to the Wi-Fi Direct, andmay be included in a user interface 914 that is installed in an embeddedweb server (EWS). A DHCP server 916 automatically allocates an IPaddress to the Wi-Fi Direct device that is connected as a client. Anetwork application program 917 performs various application operationsrelating to the network.

The above-described W-Fi Direct technology provides the W-Fi Directdevice and/or the devices of the wireless network with the followingadvantages:

A W-Fi Direct device may be connected to other devices whenever andwherever, and thus, the Wi-Fi Direct device has maximum mobility andportability. If a new W-Fi Direct device is added, the W-Fi Directdevice may be directly connected to the new W-Fi direct device. Inaddition, it may be identified whether there is an available device orservice before setting the connection to other devices, and thus, theW-Fi direct devices may be conveniently used. In addition, theconnection may be performed simply and stably by a simple operation, forexample, pushing a WPS button, and the connection may be performed withhighly secure functions by using WPA2 technology.

In addition, the W-Fi Direct technology may provide various functions inaddition to functions provided by the conventional WLAN technology.

For example, the device discovery function to search for peripheralWi-Fi Direct devices by a device type unit, the service discoveryfunction that may search for services provided by the peripheral Wi-FiDirect devices, a power management function that may effectively useelectric power, the concurrent connection function that may form the P2Pconnection between the W-Fi Direct devices while connecting to aconventional infrastructured network, a function of separating asecurity domain between the infrastructured network connection and theW-Fi Direct connection, and a cross connection function to share anInternet connection may be provided by the W-Fi Direct technology.

In addition, since the W-Fi Direct technology is based on theconventional WLAN technology, that is, IEEE 802.11, the W-Fi Directdevices may be compatible with conventional legacy WLAN devices.

Hereinafter, a method of activating W-Fi Direct, a method of performingimage forming operations, a method of managing channels, and a method ofchanging a WLAN mode in an MFP supporting W-Fi Direct will be describedin detail with reference to the accompanying drawings.

As illustrated in the description with reference to FIG. 7, the MFPsupporting W-Fi Direct supports the concurrent connection function, thatis, may be connected to the infrastructured network and P2P connected toa wireless terminal supporting W-Fi Direct. The concurrent connectionfunction is very useful in a situation where the MFP is connected to anAP of the infrastructured network and at the same time, a printoperation has to be performed by using wireless devices that are notconnected to the AP. The wireless devices that are not connected to theAP may be connected to the MFP by using an ad-hoc function in order touse a wireless printing service; however, if one MFP is connected to theinfrastructured network, the MFP may not simultaneously use the ad-hocfunction.

Detailed operation methods of performing image forming operations, suchas a printing or scanning operation, by using the wireless devices thatare P2P connected to the MFP via Wi-Fi Direct when the MFP uses theconcurrent connection function, managing channels used to connect to theinfrastructured network and to connect the Wi-Fi Direct, and changing anoperation mode between the W-Fi Direct mode and the ad-hoc operationmode are to be provided.

First, a method of activating W-Fi Direct so that the MFP supportingW-Fi Direct functions as an AGO will be described below.

FIG. 10 is a block diagram illustrating a software program configurationof an MFP supporting W-Fi Direct according to an embodiment of thepresent invention. FIG. 10 illustrates an AGO 1012 b included in a W-FiDirect connection manager 1012 a to make the MFP supporting Wi-Fi Directperform as an AGO. Also, a GO SSID and PSK generation module 1007 aincluded in a W-Fi Direct library 1007 generates an SSID and a PSK thatare necessary when the MFP functions as the AGO.

FIG. 10 also illustrates similar features to those of FIG. 9. Forexample, a WLAN dongle firmware 1001 is firmware for connecting theWLAN, and may be stored in WLAN dongle hardware or may be transmitted tothe WLAN dongle hardware from a main board of the MFP when booting theMFP. A bus driver 9102 and a STA (station) host driver 1003 are lowlevel bus drivers for communicating with the WLAN hardware. A WLANcontrolling channel 1004 and a WLAN data channel 1005 are channels forcommunicating with the WLAN firmware. A W-Fi Direct module 1007 performsthe W-Fi Direct connection and transmits an operating command to theWLAN firmware. An IEEE 802.11u generic advertisement service (GAS)module 1008 performs functions according to IEEE 802.11u GAS, a module1009 performs functions relating to CxAPI, and a WPS module 1010performs a WPS function. A soft AP module 1011 is a software moduleallowing the MFP to perform as the AP. A transmission control protocol(TCP)/IP 1013 is a standard protocol for network transmission. A W-FiDirect connection manager 1012 is a module for controlling the W-FiDirect connection. A W-Fi Direct user interface 1015 allows the user toperform settings related to the Wi-Fi Direct, and may be included in auser interface 1014 that is installed in an embedded web server (EWS). ADHCP server 1016 automatically allocates an IP to the W-Fi Direct devicethat is connected as a client. A network application program 1017performs various application operations relating to the network.

FIG. 11 is a detailed block diagram illustrating an MFP supporting W-FiDirect according to the embodiment of the present general inventiveconcept. FIG. 11 illustrates a basic structure of the MFP supportingWi-Fi Direct. The CPU 830 of FIG. 8 includes a WLAN connection manager831, a W-Fi Direct connection manager 832, an AGO manager 833, and aW-Fi Direct library unit 834. The W-Fi Direct connection manager 832receives a W-Fi Direct initialization command from the WLAN connectionmanager 831 from a user via the user interface module 850, and then, theWi-Fi Direct connection manager 832 turns a GO flag on. The AGO manager833 identifies the GO flag, and when the GO flag is in a turned onstate, the AGO manager 833 activates Wi-Fi Direct so that the MFPperforms as a GO. The W-Fi Direct library unit 834 generates an SSID anda PSK of the GO according to a command of the AGO manager 833.

FIGS. 12, 13A, and 13B are flowcharts illustrating a method ofactivating W-Fi Direct in an MFP supporting W-Fi Direct, according to anembodiment of the present general inventive concept. Hereinafter, themethod of activating W-Fi Direct will be described in detail withreference to FIGS. 11 through 13.

Referring to FIG. 12, an initialization command is received at operationS1201. The initialization command is a Wi-Fi Direct initializationcommand, and may be an MFP initialization command that is accompaniedwith the initialization of W-Fi Direct. The initialization command maybe directly input by the user via the user interface module 850, or maybe transmitted from the WLAN connection manager 831. When theinitialization command is received, the W-Fi Direct connection manager832 turns the GO flag on at operation S1203. The GO flag is an indexrepresenting whether W-Fi Direct is activated so that the MFP becomesthe GO. When the GO flag is in a turned on state, the MFP functions asthe GO, and when the GO flag is in a turned off state, the MFP does notfunction as the GO. In the present embodiment, the GO flag isautomatically turned on when the initialization command is received, andthus, the MFP may perform as the AGO without connecting to the otherW-Fi Direct devices. In addition, it is determined whether W-Fi Directis turned on at operation S1205. If Wi-Fi Direct is turned on, theprocess goes to operation S1207 in which the AGO manager 833 identifiesthe GO flag. If the GO flag is in a turned on state, the process goes tooperation S1209 in which W-Fi Direct is activated so that the MFPbecomes the GO. However, when determining whether W-Fi Direct is in aturned on state in operation S1205, the turned on state of Wi-Fi Directdenotes that the MFP is set to use the Wi-Fi Direct function.

Referring to FIG. 13A, when an initialization command at operation S1301is received, the GO flag is turned on at operation S1303, and it isdetermined whether W-Fi Direct is in a turned on state at operationS1305. The above processes are the same as the operations described withreference to FIG. 12. When it is determined that W-Fi Direct is in aturned on state in operation S1305, the W-Fi Direct connection manager832 determines whether the Wi-Fi Direct library is initialized. If it isdetermined that the W-Fi Direct library is initialized, the process goesto operation S1309 of FIG. 13B in which the AGO manager 833 determineswhether the GO flag is in a turned on state. Otherwise, if it isdetermined that the W-Fi Direct library is not initialized, the W-FiDirect library is initialized in operation S1308, and then, the processgoes to operation S1309. If the GO flag is determined to be in theturned on state in operation S1309, it is determined whether W-Fi Directis connected at operation S1311. Otherwise, if the GO flag is in theturned off state, a W-Fi Direct device discovery process is performed atoperation S1310, and then, the process goes to operation S1319 to updatethe state of Wi-Fi Direct. If it is determined that Wi-Fi Direct isconnected in operation S1311, the W-Fi Direct state is also updated inoperation S1319. Otherwise, if it is determined that W-Fi Direct is notconnected in operation S1311, it is determined whether the W-Fi Directdevice discovery mode is operating at operation S1313. If the devicediscovery mode is not operating, the process goes directly to operationS1315; however, if the device discovery mode is operating, the W-FiDirect device discovery mode is terminated at operation S1414, and theprocess goes to operation S1315. An SSID, a PSK, and a GO credentialthat are necessary when the MFP operates as the GO are generated atoperation S1315, and then, a soft AP is driven to activate W-Fi Directso that the MFP operates as the GO at operation S1317, and the W-FiDirect state is updated at operation S1319.

As described above, when activating Wi-Fi Direct according to the W-FiDirect initialization command, the MFP may operates as the AGO even whenthe MFP is not connected to other W-Fi Direct devices, and thus, theW-Fi Direct network is formed in advance to be connected to legacywireless devices that do not support W-Fi Direct. In addition, the MFPmay perform as a GO having relatively higher power consumption due to anadvantage that the MFP may consume a lot of electric power as a fixeddevice, that is a stationary device to receive a power to operate withthe received power and also to be able to supply the power to anexternal device through a wired or wireless transmission method. Also,an IP address of the MFP may be fixed.

Hereinafter, a method of performing image forming processes in an MFPsupporting W-Fi Direct will be described with reference to theaccompanying drawings. FIG. 14 is a detailed block diagram illustratingan MFP supporting Wi-Fi Direct according to an embodiment of the presentgeneral inventive concept. FIG. 8 illustrates a basic structure of theMFP supporting Wi-Fi direct. The CPU 830 of FIG. 8 may include an IPaddress manager 835 and a controller 836. In addition, the scannermodule 860, the fax module 870, and the print engine 880 are included inan image forming unit 1400.

The WLAN interface unit 810 allows the MFP to be Wi-Fi Direct connectedat the same time of being connected to the infrastructured network. TheIP address manager 835 manages an IP address of the infrastructurednetwork and an IP address of the Wi-Fi Direct interface. The MFPsupports the concurrent connection function as described above, and mayhave two different IP addresses according to the interfaces in the casewhere the MFP is connected to both of the infrastructured network andthe Wi-Fi Direct. The IP address manager 835 identifies the IP addressof each interface and provides the controller 836 with the IP address.The controller 836 receives the IP addresses from the IP address manager835 and controls execution of the image forming operation requested byan external wireless device. In more detail, when the controller 836receives a discovery packet from the wireless terminal WI-Fi Directconnected to the MFP through the Wi-Fi Direct interface, the controller836 receives the IP address of the Wi-Fi Direct interface from the IPaddress manager 835 to generate a response packet including the IPaddress and transmit the response packet to the wireless terminal. Thewireless terminal analyzes the response packet transmitted from the MFPto get the IP address of the Wi-Fi Direct interface of the MFP. Also,the controller 836 may generate the response packet further includinginformation on services available by the MFP, and in this case, thewireless terminal may determine the services that may be provided by theMFP by analyzing the response packet.

If the controller 836 receives a request to perform an image formingoperation the request being transmitted to the destination of which isthe IP address of the Wi-Fi Direct interface, from the wireless terminalWi-Fi Direct connected to the MFP, the controller 836 may allow theimage forming unit 1400 to perform the requested image formingoperation. For example, if the controller 836 receives print data usingthe destination of which is the IP address of the Wi-Fi Directinterface, from the wireless terminal, the controller 836 allows theprint engine 880 to perform a print operation according to the receivedprint data. When the controller 836 receives a scan request through thedestination of which is the IP address of the W-Fi Direct interface,from the wireless terminal, and allows the scanner module 860 to performthe scanning operation.

FIG. 15 is a flowchart illustrating a method of performing an imageforming operation of the MFP supporting W-Fi Direct, according to anembodiment of the present general inventive concept. Referring to FIG.15, the MFP is W-Fi Direct connected to the wireless terminal in a stateof being connected to the AP of the infrastructured network by using theconcurrent connection function at operation S1501. The MFP receives adiscovery packet from the wireless terminal that is W-Fi Directconnected to the MFP via the W-Fi Direct interface at operation S1503.When the discovery packet from the wireless terminal is received via theWI-Fi Direct interface, the MFP generates a response packet including anIP address of the Wi-Fi Direct interface and transmits the responsepacket to the wireless terminal at operation S1505. The wirelessterminal receiving the response packet may identify the IP address ofthe W-Fi Direct interface of the MFP by analyzing the response packet.Further, the MFP may generate a response packet including informationabout available services of the MFP, and in this case, the wirelessterminal may identify the kinds of image forming operation servicesprovided by the MFP by analyzing the response packet. When the wirelessterminal receiving the response packet transmits a request for executingthe image forming operation to a destination of the IP address of theW-Fi Direct interface, the MFP receives the response packet at operationS1507, and performs the requested image forming operation at operationS1509. For example, when print data, the destination of which is the IPaddress of the W-Fi Direct interface, is received in operation S1507,the printing is performed according to the print data at operationS1509, and if a scanning request, the destination of which is the IPaddress of the W-Fi Direct interface, is received in operation S1507,the scanning operation is performed at operation S1509.

As described above, the response packet, including the IP address of theWi-Fi Direct interface, is transmitted to the wireless terminal that isW-Fi Direct connected to the MFP, and when the MFP receives the requestto perform the image forming operation, the destination of which is theIP address of the Wi-Fi Direct interface, from the wireless terminal,the MFP performs the request. Thus, the MFP may stably perform the imageforming operation requested by the wireless terminal that is W-Fi Directconnected to the MFP in a state of being connected to theinfrastructured network and the W-Fi Direct simultaneously.

Hereinafter, a method of managing channels in the MFP supporting W-FiDirect will be described in detail with reference to the accompanyingdrawings. FIG. 16 is a block diagram illustrating a software programconfiguration of the MFP supporting W-Fi Direct according to theembodiment of the present general inventive concept. FIG. 16 illustratesa channel manager 1612 b included in a WLAN connection manager 1612 tomanage a channel used by the MFP to connect to the infrastructurednetwork AP and a W-Fi Direct operation channel used in the WI-Fi Directconnection.

FIG. 16 also illustrates the similar features to those of FIG. 9. Forexample, a WLAN dongle firmware 1601 is firmware for connecting theWLAN, and may be stored in WLAN dongle hardware or may be transmitted tothe WLAN dongle hardware from a main board of the MFP when booting theMFP. A bus driver 1602 and a STA (station) host driver 1603 are lowlevel bus drivers for communicating with the WLAN hardware. A WLANcontrolling channel 1604 and a WLAN data channel 1605 are channels forcommunicating with the WLAN firmware. A W-Fi Direct module 1607 performsthe W-Fi Direct connection and transmits an operating command to theWLAN firmware. An IEEE 802.11u generic advertisement service (GAS)module 1608 performs functions according to IEEE 802.11u GAS, a module1609 performs functions relating to CxAPI, and a WPS module 1610performs a WPS function. A soft AP module 1611 is a software moduleallowing the MFP to perform as the AR. A transmission control protocol(TCP)/IP 1613 is a standard protocol for network transmission. A W-FiDirect connection manager 1612 is a module for controlling the W-FiDirect connection. A W-Fi Direct user interface 1615 allows the user toperform settings related to the Wi-Fi Direct, and may be included in auser interface 1614 that is installed in an embedded web server (EWS). ADHCP server 1616 automatically allocates an IP to the W-Fi Direct devicethat is connected as a client. A network application program 1617performs various application operations relating to the network.

The method of managing the channels used in the connections by thechannel manager 1612 b will be described below with reference to FIGS.18 through 24.

FIG. 17 is a block diagram illustrating the MFP supporting W-Fi Directaccording to the embodiment of the present general inventive concept.Referring back to FIG. 8 illustrating a basic configuration of the MFPsupporting W-Fi Direct, the CPU 830 may include a WLAN connectionmanager 831, a W-Fi Direct connection manager 832, a W-Fi Direct libraryunit 834, and a channel manager 837. Also, the memory unit 840 mayinclude a channel storage unit 846 therein. The channel manager 837identifies the channel used by the MFP to connect to the infrastructurednetwork AP from the WLAN connection manager 831, and identifies the W-FiDirect operation channel used in the W-Fi Direct connection from theWi-Fi Direct connection manager 832. In addition, the channel manager837 makes the channel used in the AP connection and the W-Fi Directoperation channel coincide with each other. Also, the channel manager837 stores the channel used in the connection to the infrastructurednetwork AP in the channel storage unit 846 so that the stored channelmay be set as the W-Fi Direct operation channel when the connection tothe infrastructured network AP is disconnected and W-Fi Direct isactivated. Since the MFP is mainly used as a fixed device, it is likelyto use the channel that has been used to connect to the infrastructurednetwork AP once again. When the W-Fi Direct operation channel is set tobe the same as the channel used to connect to the AP by the channelmanager 837, the W-Fi Direct connection manager 832 activates W-FiDirect through the set Wi-Fi Direct operation channel by using the W-FiDirect library unit 834.

FIGS. 18 through 23 are flowcharts illustrating the method of managingthe channels in the MFP supporting W-Fi Direct according to theembodiment of the present general inventive concept. Hereinafter, thechannel managing method will be described in detail below with referenceto FIGS. 18 through 23.

Referring to FIG. 18, a channel that has been used to connect the MFP tothe infrastructured network AP is set as the W-Fi Direct operationchannel at operation S1801, and W-Fi Direct is activated by using theset channel at operation S1803. Here, sub-processes of operation S1801of setting the channel used in the connection to the AP as the Wi-FiDirect operation channel are illustrated in FIG. 19. Referring to FIG.19, before activating W-Fi Direct, it is determined whether the MFP isconnected currently to the infrastructured network AP at operationS1901. As a result of determination, if the MFP is currently connectedto the infrastructured network AP, the channel used in the connection tothe AP is identified at operation S1903. In addition, the identifiedchannel is set as the Wi-Fi Direct operation channel at operation S1905.However, as a result of the determination in operation S1901, if the MFPis not currently connected to the infrastructured network AP, it isdetermined whether the MFP has ever been connected to theinfrastructured network AP at operation S1907. If the MFP has beenconnected to the infrastructured network AP, the channel used in thelast connection to the AP is identified at operation S1909, and theidentified channel is set as the W-Fi Direct operation channel atoperation S1911. On the other hand, if the MFP has never been connectedto the infrastructured network AP before in operation S1907, anarbitrary channel is set as the W-Fi Direct operation channel atoperation S1913.

FIGS. 20 through 22 are flowcharts illustrating processes of setting theW-Fi Direct operation channel in a state where the MFP is connected tothe AP of the infrastructured network. Referring to FIG. 20, the MFP isconnected to the infrastructured network AP at operation S2001, and thechannel used in the connection to the AP is identified at operationS2003. The channel identified in operation S2003 is stored at operationS2005, and the stored channel is set as the W-Fi Direct operationchannel at operation S2007. Here, sub-processes of operation S2007 forsetting the stored channel as the Wi-Fi Direct operation channel areillustrated in FIGS. 21 and 22.

Referring to FIG. 21, after storing the channel identified in operationS2005 of FIG. 20, it is determined whether Wi-Fi Direct is currentlyactivated at operation S2101. As a result of determination, if W-FiDirect is currently activated, the W-Fi Direct operation channel isidentified at operation S2103. In addition, it is determined whether theWi-Fi Direct operation channel coincides with the stored channel atoperation S2105, and if it is determined that the two channels are notthe same as each other, the W-Fi Direct operation is stopped atoperation S2107, and the stored channel is set as the Wi-Fi Directoperation channel to activate W-Fi Direct at operation S2109. Otherwise,if it is determined that the W-Fi Direct is not currently activated inoperation S2101, it is identified whether there is a request foractivating W-Fi Direct at operation S2102, and if there is a request,the stored channel is set as the W-Fi Direct operation channel toactivate W-Fi Direct at operation S2109.

As another example of the sub-processes of operation S2007 of FIG. 20,referring to FIG. 22, after storing the channel identified in operationS2005 illustrated in FIG. 20, the connection between the MFP and theinfrastructured network AP is disconnected at operation S2201. Inaddition, when the MFP receives a W-Fi Direct activation request atoperation S2203, the stored channel is set as the W-Fi Direct operationchannel to activate W-Fi Direct at operation S2205.

FIG. 23 is a flowchart illustrating processes of setting the Wi-FiDirect operation channel in a state where W-Fi Direct of the MFP isactivated. Referring to FIG. 23, W-Fi Direct of the MFP is activated atoperation S2301, and the MFP is connected to the infrastructured networkAP in a state where Wi-Fi Direct is activated at operation S2303. TheW-Fi Direct operation channel and the channel used in the connection tothe AP are identified at operation S2305. It is determined whether theW-Fi Direct operation channel is the same as the channel used in theconnection to the AP at operation S2307, and if it is determined thatthe two channels are not the same as each other, the W-Fi Directoperation is stopped at operation S2309, and the channel used in theconnection to the AP is set as the W-Fi Direction operation channel toactivate W-Fi Direct at operation S2311.

The above processes will be described in detail with reference to FIG.16 below. If the MFP is connected to the AP operating in channel 6 at2.4 GHz when the Wi-Fi Direct operation channel is channel 1 at 2.4 GHz,the channel manager 1612 b reads out the channel of the connected AP viathe WLAN library 1618 from a wireless module and notifies the W-FiDirect manager 1612 a of the read channel so that the W-Fi Directoperation channel is changed to the channel 6. The W-Fi Direct manager1612 a performs a preliminary operation of changing the channel, such astermination of the soft AP, change of an information element, andtermination of a device discovery operation, and then, changes the W-FiDirect operation channel to the channel 6 to activate W-Fi Direct.

In general, since a wireless MFP performs transmission via one wirelessantenna, the wireless MFP has to communicate by using one communicationchannel at once. Therefore, when a concurrent connection function, inwhich the MFP is simultaneously connected to the infrastructured networkand the Wi-Fi Direct, is performed, there may be a problem in using thecommunication function. If two different channels are used in theconnection to the infrastructured network and the Wi-Fi Directconnection, a wireless chipset of superior CPU performance may processall of the packets while continuously reciprocating two channels in atime-division manner; however, services of each of the channels may bedelayed and stability of the channels may be degraded. However,according to the method of managing the channels of the presentembodiment, a single channel is used in the concurrent connection, andthus, the above problems may be addressed. Also, the channel of theinfrastructured network AP is not known to the MFP before the MFP isconnected to the AP; however, according to the present embodiment, evenwhen the MFP is connected to the infrastructured network AP in a statewhere W-Fi Direct is activated first, the channel information of the APis read and the Wi-Fi Direct operation channel is set according to theAP channel information so as to use a single channel.

Hereinafter, a method of changing an operation mode in the MFPsupporting Wi-Fi Direct will be described below with reference to theaccompanying drawings. There may be two WLAN usage modes of the MFP,that is, an ad-hoc mode and an infrastructured network mode. The ad-hocmode is a mode in which the MFP is wirelessly connected to the wirelessdevice by using ad-hoc communication, and the infrastructured networkmode is a mode in which the MFP is wirelessly connected to theinfrastructured network AP.

FIG. 24 is a block diagram illustrating the MFP supporting W-Fi Directaccording to the embodiment of the present general inventive concept.FIG. 8 illustrates a basic configuration of the MFP supporting W-FiDirect. Referring to FIGS. 8 and 24, the CPU 830 may include the WLANconnection manager 831 and the W-Fi Direct connection manager 832.Detailed operations of each of the components will be described belowwith reference to FIGS. 25 through 27.

FIGS. 25 through 27 are flowchart illustrating a method of changing theoperation mode of the MFP supporting W-Fi Direct, according to theembodiment of the present general inventive concept. Referring to FIG.25, when a Wi-Fi Direct activation request is transmitted from a uservia the user interface module 850 at operation S2501, the WLANconnection manager 831 determines whether the MFP currently operates inthe ad-hoc mode at operation S2503. If it is determined that the MFPcurrently operates in the ad-hoc mode, the WLAN connection manager 831terminates the ad-hoc mode and requests the W-Fi Direct connectionmanager 832 to activate W-Fi Direct at operation S2505. The W-Fi Directconnection manager 832 activates W-Fi Direct according to the request atoperation S2507. Here, sub-processes of operation S2505 in which theWLAN connection manager 831 terminates the ad-hoc mode are illustratedin FIG. 26. Referring to FIG. 26, the WLAN connection manager 831 maychange the operation mode of the MFP from the ad-hoc mode to theinfrastructured network mode at operation S2601. Here, the WLANconnection manager 831 may only terminate the ad-hoc mode withoutchanging the operation mode to the infrastructured network mode. TheSSID of the MFP, which is set for executing the ad-hoc mode, may bechanged to a null state in order to terminate the ad-hoc mode atoperation S2603.

Referring to FIG. 27, when an ad-hoc mode execution request is receivedvia the user interface module 850 at operation S2701, the WLANconnection manager 831 determines whether W-Fi Direct of the MFP iscurrently activated at operation S2703. As a result of thedetermination, if the Wi-Fi Direct of the MFP is currently activated,the WLAN connection manager 831 requests the W-Fi Direct connectionmanager 832 to terminate the W-Fi Direct operation. Accordingly, whenthe W-Fi Direct connection manager 832 terminates the Wi-Fi Directoperation at operation S2705, the WLAN connection manager 831 executesthe ad-hoc mode at operation S2707.

Although the W-Fi Direct technology supports the concurrent connectionfunction to the infrastructured network and the Wi-Fi Direct, there maybe a limitation, that is, the MFP may not be connected to the Wi-FiDirect while operating in the ad-hoc mode. The ad-hoc mode may ensuremutual compatibility between devices under IEEE 802.11b; however, Wi-FiDirect does not support IEEE 802.11b. Therefore, when there is a requestto execute the W-Fi Direct mode or the ad-hoc mode while operating inthe ad-hoc mode or the Wi-Fi Direct mode, a method of selectivelychanging the operation mode is necessary, as provided in the embodimentsof the present general inventive concept.

According to the present general inventive concept, when activating W-FiDirect according to the initialization command, the MFP may operate as aGO even if the MFP is not connected to other W-Fi Direct devices inorder to form the W-Fi Direct network in advance, so that the MFP mayprovide connections to legacy wireless terminals that do not supportW-Fi Direct. Also, the MFP that is a fixed type device may perform asthe GO that has a relatively large power consumption.

Also, when the Wi-Fi Direct activation request is received whileoperating in the ad-hoc mode, the ad-hoc mode is terminated and W-FiDirect is activated, and accordingly, a problem that the W-Fi Directconnection is not possible while operating in the ad-hoc mode may beaddressed.

The present general inventive concept can also be embodied ascomputer-readable codes on a computer-readable medium. Thecomputer-readable medium can include a computer-readable recordingmedium and a computer-readable transmission medium. Thecomputer-readable recording medium is any data storage device that canstore data as a program which can be thereafter read by a computersystem. Examples of the computer-readable recording medium includeread-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetictapes, floppy disks, and optical data storage devices. Thecomputer-readable recording medium can also be distributed over networkcoupled computer systems so that the computer-readable code is storedand executed in a distributed fashion. The computer-readabletransmission medium can transmit carrier waves or signals (e.g., wiredor wireless data transmission through the Internet). Also, functionalprograms, codes, and code segments to accomplish the present generalinventive concept can be easily construed by programmers skilled in theart to which the present general inventive concept pertains.

Although a few embodiments of the present general inventive concept havebeen shown and described, it will be appreciated by those skilled in theart that changes may be made in these embodiments without departing fromthe principles and spirit of the general inventive concept, the scope ofwhich is defined in the appended claims and their equivalents.

What is claimed is:
 1. An image forming apparatus supporting peer topeer (P2P) connection, comprising: a print engine to perform a printoperation; a first wireless interface to connect the image formingapparatus to an access point (AP) of an infrastructured network; asecond wireless interface to connect the image forming apparatus to anexternal mobile device by P2P; a soft AP module to allow the imageforming apparatus to perform as an AP when the image forming apparatusis P2P connected; a dynamic host configuration protocol (DHCP) serverunit to allocate an internet protocol (IP) address to the mobile devicethat is P2P connected to the image forming apparatus; a soft APactivating unit to activate the soft AP module; and a control unit;wherein, if a discovery packet is received from the mobile device viaP2P interface, the control unit is operable to control the image formingapparatus to process the discovery packet.
 2. The image formingapparatus of claim 1, further comprising a storage unit to store theinformation of the mobile device.
 3. The image forming apparatus ofclaim 2, wherein the stored information comprises a profile informationof the mobile device.
 4. The image forming apparatus of claim 3, whereinthe storage unit stores the profile information of the mobile devicecurrently connected to the P2P connection and the profile information ofa mobile device that has previously connected to the P2P connection. 5.The image forming apparatus of claim 1, wherein the image formingapparatus is the group owner of the P2P connection with the mobiledevice.
 6. The image forming apparatus of claim 1 further comprising atleast one of a scanner, a fax module and a network interface module. 7.An image forming apparatus supporting peer to peer (P2P) connection,comprising: a scanner unit to perform a scanning operation; a firstwireless interface to connect the image forming apparatus to an accesspoint (AP) of an infrastructured network; a second wireless interface toconnect the image forming apparatus to an external mobile device by P2P;a soft AP module to allow the image forming apparatus to perform as anAP when the image forming apparatus is P2P connected; a dynamic hostconfiguration protocol (DHCP) server unit to allocate an internetprotocol (IP) address to the mobile device that is P2P connected to theimage forming apparatus; a soft AP activating unit to activate the softAP module; and a control unit; wherein, if a discovery packet isreceived from the mobile device via P2P interface, the control unit isoperable to control the image forming apparatus to process the discoverypacket.
 8. The image forming apparatus of claim 7, further comprising astorage unit to store the information of the mobile device.
 9. The imageforming apparatus of claim 8, wherein the stored information comprises aprofile information of the mobile device.
 10. The image formingapparatus of claim 9, wherein the storage unit stores the profileinformation of the mobile device currently connected to the P2Pconnection and the profile information of a mobile device that haspreviously connected to the P2P connection.
 11. The image formingapparatus of claim 7, wherein the image forming apparatus is the groupowner of the P2P connection with the mobile device.
 12. The imageforming apparatus of claim 7 further comprising at least one of aprinting device, a fax module and a network interface module.
 13. Anon-transitory computer-readable recording medium having embodiedthereon a program to execute a method comprising: receiving a peer topeer (P2P) activation request from a mobile device by an image formingapparatus; activating the P2P connection between the image formingapparatus and the mobile device; and driving a soft access point (AP) ofthe image forming apparatus in order to activate P2P connection so thatthe image forming apparatus functions as a group owner (GO).
 14. Thenon-transitory computer-readable recording medium of claim 13, whereinactivating P2P connection comprises: identifying a GO flag of the imageforming apparatus; activating the P2P connection so that the imageforming apparatus may function as a GO when the identified GO flag is ina turned on state; and setting the GO flag in a turned on state always.15. The non-transitory computer-readable recording medium of claim 13,further comprising: storing a channel used in the connection via a firstinterface; and connecting the image forming apparatus to the externalmobile device in the P2P connection via a second interface by using thestored channel.
 16. The non-transitory computer-readable recordingmedium of claim 13, further comprising: storing the profile informationof the mobile device connected to the image forming apparatus throughthe P2P connection.
 17. The non-transitory computer-readable recordingmedium of claim 13, further comprising: receiving data from the mobiledevice that is transmit to the image forming apparatus over the P2Pconnection; performing the necessary function of the image formingapparatus to process the received data.
 18. The non-transitorycomputer-readable recording medium of claim 17, wherein performing thenecessary function comprise the image forming apparatus to operate atleast one of a printing unit, a scanner unit, a fax module or a networkmodule.